package com.itsc.util;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

public class HttpUtil {

	public static void rendText(String text) throws Exception{
		HttpServletResponse response = ServletActionContext.getResponse();
		response.setContentType("text/html");
		response.setCharacterEncoding("utf-8");
		response.getWriter().write(text);
		response.getWriter().flush();
		response.getWriter().close();
		
	}
}
